package SaalPanels;

import java.awt.Dimension;
import java.awt.GridLayout;
import java.util.ArrayList;

import javax.swing.JCheckBox;

import javax.swing.ImageIcon;
import javax.swing.WindowConstants;
import javax.swing.JFrame;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class Saal80Panel extends javax.swing.JPanel {
	private JCheckBox jCheckBox1;
	private JCheckBox jCheckBox2;
	private JCheckBox jCheckBox49;
	private JCheckBox jCheckBox48;
	private JCheckBox jCheckBox47;
	private JCheckBox jCheckBox46;
	private JCheckBox jCheckBox45;
	private JCheckBox jCheckBox44;
	private JCheckBox jCheckBox43;
	private JCheckBox jCheckBox42;
	private JCheckBox jCheckBox41;
	private JCheckBox jCheckBox40;
	private JCheckBox jCheckBox39;
	private JCheckBox jCheckBox80;
	private JCheckBox jCheckBox79;
	private JCheckBox jCheckBox78;
	private JCheckBox jCheckBox77;
	private JCheckBox jCheckBox76;
	private JCheckBox jCheckBox75;
	private JCheckBox jCheckBox74;
	private JCheckBox jCheckBox73;
	private JCheckBox jCheckBox72;
	private JCheckBox jCheckBox71;
	private JCheckBox jCheckBox70;
	private JCheckBox jCheckBox69;
	private JCheckBox jCheckBox68;
	private JCheckBox jCheckBox67;
	private JCheckBox jCheckBox66;
	private JCheckBox jCheckBox65;
	private JCheckBox jCheckBox64;
	private JCheckBox jCheckBox63;
	private JCheckBox jCheckBox62;
	private JCheckBox jCheckBox61;
	private JCheckBox jCheckBox60;
	private JCheckBox jCheckBox59;
	private JCheckBox jCheckBox58;
	private JCheckBox jCheckBox57;
	private JCheckBox jCheckBox56;
	private JCheckBox jCheckBox55;
	private JCheckBox jCheckBox54;
	private JCheckBox jCheckBox53;
	private JCheckBox jCheckBox52;
	private JCheckBox jCheckBox51;
	private JCheckBox jCheckBox50;
	private JCheckBox jCheckBox38;
	private JCheckBox jCheckBox37;
	private JCheckBox jCheckBox36;
	private JCheckBox jCheckBox35;
	private JCheckBox jCheckBox34;
	private JCheckBox jCheckBox33;
	private JCheckBox jCheckBox32;
	private JCheckBox jCheckBox31;
	private JCheckBox jCheckBox30;
	private JCheckBox jCheckBox29;
	private JCheckBox jCheckBox28;
	private JCheckBox jCheckBox27;
	private JCheckBox jCheckBox26;
	private JCheckBox jCheckBox25;
	private JCheckBox jCheckBox24;
	private JCheckBox jCheckBox23;
	private JCheckBox jCheckBox22;
	private JCheckBox jCheckBox21;
	private JCheckBox jCheckBox20;
	private JCheckBox jCheckBox19;
	private JCheckBox jCheckBox18;
	private JCheckBox jCheckBox17;
	private JCheckBox jCheckBox16;
	private JCheckBox jCheckBox15;
	private JCheckBox jCheckBox14;
	private JCheckBox jCheckBox12;
	private JCheckBox jCheckBox13;
	private JCheckBox jCheckBox11;
	private JCheckBox jCheckBox10;
	private JCheckBox jCheckBox9;
	private JCheckBox jCheckBox8;
	private JCheckBox jCheckBox7;
	private JCheckBox jCheckBox6;
	private JCheckBox jCheckBox5;
	private JCheckBox jCheckBox4;
	private JCheckBox jCheckBox3;
	private ArrayList<JCheckBox> checkBoxList = new ArrayList<JCheckBox>();

	/**
	* Auto-generated main method to display this 
	* JPanel inside a new JFrame.
	*/
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		frame.getContentPane().add(new Saal80Panel());
		frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		frame.pack();
		frame.setVisible(true);
	}
	
	public Saal80Panel() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			GridLayout thisLayout = new GridLayout(10, 8);
			thisLayout.setHgap(5);
			thisLayout.setVgap(5);
			thisLayout.setColumns(1);
			this.setLayout(thisLayout);
			setPreferredSize(new Dimension(400, 300));
			{
				jCheckBox1 = new JCheckBox();
				this.add(jCheckBox1);
				jCheckBox1.setText("1");
				checkBoxList.add(null); // damit Index 1 der jCheckBox1 entspricht
				checkBoxList.add(jCheckBox1);
			}
			{
				jCheckBox2 = new JCheckBox();
				this.add(jCheckBox2);
				jCheckBox2.setText("2");
				checkBoxList.add(jCheckBox2);
			}
			{
				jCheckBox3 = new JCheckBox();
				this.add(jCheckBox3);
				jCheckBox3.setText("3");
				checkBoxList.add(jCheckBox3);
			}
			{
				jCheckBox4 = new JCheckBox();
				this.add(jCheckBox4);
				jCheckBox4.setText("4");
				checkBoxList.add(jCheckBox4);
			}
			{
				jCheckBox5 = new JCheckBox();
				this.add(jCheckBox5);
				jCheckBox5.setText("5");
				checkBoxList.add(jCheckBox5);
			}
			{
				jCheckBox6 = new JCheckBox();
				this.add(jCheckBox6);
				jCheckBox6.setText("6");
				checkBoxList.add(jCheckBox6);
			}
			{
				jCheckBox7 = new JCheckBox();
				this.add(jCheckBox7);
				jCheckBox7.setText("7");
				checkBoxList.add(jCheckBox7);
			}
			{
				jCheckBox8 = new JCheckBox();
				this.add(jCheckBox8);
				jCheckBox8.setText("8");
				checkBoxList.add(jCheckBox8);
			}
			{
				jCheckBox9 = new JCheckBox();
				this.add(jCheckBox9);
				jCheckBox9.setText("9");
				checkBoxList.add(jCheckBox9);
			}
			{
				jCheckBox10 = new JCheckBox();
				this.add(jCheckBox10);
				jCheckBox10.setText("10");
				checkBoxList.add(jCheckBox10);
			}
			{
				jCheckBox11 = new JCheckBox();
				this.add(jCheckBox11);
				jCheckBox11.setText("11");
				checkBoxList.add(jCheckBox11);
			}
			{
				jCheckBox12 = new JCheckBox();
				this.add(jCheckBox12);
				jCheckBox12.setText("12");
				checkBoxList.add(jCheckBox12);
			}
			{
				jCheckBox13 = new JCheckBox();
				this.add(jCheckBox13);
				jCheckBox13.setText("13");
				checkBoxList.add(jCheckBox13);
			}
			{
				jCheckBox14 = new JCheckBox();
				this.add(jCheckBox14);
				jCheckBox14.setText("14");
				checkBoxList.add(jCheckBox14);
			}			
			{
				jCheckBox15 = new JCheckBox();
				this.add(jCheckBox15);
				jCheckBox15.setText("15");
				checkBoxList.add(jCheckBox15);
			}
			{
				jCheckBox16 = new JCheckBox();
				this.add(jCheckBox16);
				jCheckBox16.setText("16");
				checkBoxList.add(jCheckBox16);
			}
			{
				jCheckBox17 = new JCheckBox();
				this.add(jCheckBox17);
				jCheckBox17.setText("17");
				checkBoxList.add(jCheckBox17);
			}
			{
				jCheckBox18 = new JCheckBox();
				this.add(jCheckBox18);
				jCheckBox18.setText("18");
				checkBoxList.add(jCheckBox18);
			}
			{
				jCheckBox19 = new JCheckBox();
				this.add(jCheckBox19);
				jCheckBox19.setText("19");
				checkBoxList.add(jCheckBox19);
			}
			{
				jCheckBox20 = new JCheckBox();
				this.add(jCheckBox20);
				jCheckBox20.setText("20");
				checkBoxList.add(jCheckBox20);
			}
			{
				jCheckBox21 = new JCheckBox();
				this.add(jCheckBox21);
				jCheckBox21.setText("21");
				checkBoxList.add(jCheckBox21);
			}
			{
				jCheckBox22 = new JCheckBox();
				this.add(jCheckBox22);
				jCheckBox22.setText("22");
				checkBoxList.add(jCheckBox22);
			}
			{
				jCheckBox23 = new JCheckBox();
				this.add(jCheckBox23);
				jCheckBox23.setText("23");
				checkBoxList.add(jCheckBox23);
			}
			{
				jCheckBox24 = new JCheckBox();
				this.add(jCheckBox24);
				jCheckBox24.setText("24");
				checkBoxList.add(jCheckBox24);
			}
			{
				jCheckBox25 = new JCheckBox();
				this.add(jCheckBox25);
				jCheckBox25.setText("25");
				checkBoxList.add(jCheckBox25);
			}
			{
				jCheckBox26 = new JCheckBox();
				this.add(jCheckBox26);
				jCheckBox26.setText("26");
				checkBoxList.add(jCheckBox26);
			}
			{
				jCheckBox27 = new JCheckBox();
				this.add(jCheckBox27);
				jCheckBox27.setText("27");
				checkBoxList.add(jCheckBox27);
			}
			{
				jCheckBox28 = new JCheckBox();
				this.add(jCheckBox28);
				jCheckBox28.setText("28");
				checkBoxList.add(jCheckBox28);
			}
			{
				jCheckBox29 = new JCheckBox();
				this.add(jCheckBox29);
				jCheckBox29.setText("29");
				checkBoxList.add(jCheckBox29);
			}
			{
				jCheckBox30 = new JCheckBox();
				this.add(jCheckBox30);
				jCheckBox30.setText("30");
				checkBoxList.add(jCheckBox30);
			}
			{
				jCheckBox31 = new JCheckBox();
				this.add(jCheckBox31);
				jCheckBox31.setText("31");
				checkBoxList.add(jCheckBox31);
			}
			{
				jCheckBox32 = new JCheckBox();
				this.add(jCheckBox32);
				jCheckBox32.setText("32");
				checkBoxList.add(jCheckBox32);
			}
			{
				jCheckBox33 = new JCheckBox();
				this.add(jCheckBox33);
				jCheckBox33.setText("33");
				checkBoxList.add(jCheckBox33);
			}
			{
				jCheckBox34 = new JCheckBox();
				this.add(jCheckBox34);
				jCheckBox34.setText("34");
				checkBoxList.add(jCheckBox34);
			}
			{
				jCheckBox35 = new JCheckBox();
				this.add(jCheckBox35);
				jCheckBox35.setText("35");
				checkBoxList.add(jCheckBox35);
			}
			{
				jCheckBox36 = new JCheckBox();
				this.add(jCheckBox36);
				jCheckBox36.setText("36");
				checkBoxList.add(jCheckBox36);
			}
			{
				jCheckBox37 = new JCheckBox();
				this.add(jCheckBox37);
				jCheckBox37.setText("37");
				checkBoxList.add(jCheckBox37);
			}
			{
				jCheckBox38 = new JCheckBox();
				this.add(jCheckBox38);
				jCheckBox38.setText("38");
				checkBoxList.add(jCheckBox38);
			}
			{
				jCheckBox39 = new JCheckBox();
				this.add(jCheckBox39);
				jCheckBox39.setText("39");
				checkBoxList.add(jCheckBox39);
			}
			{
				jCheckBox40 = new JCheckBox();
				this.add(jCheckBox40);
				jCheckBox40.setText("40");
				checkBoxList.add(jCheckBox40);
			}
			{
				jCheckBox41 = new JCheckBox();
				this.add(jCheckBox41);
				jCheckBox41.setText("41");
				checkBoxList.add(jCheckBox41);
			}
			{
				jCheckBox42 = new JCheckBox();
				this.add(jCheckBox42);
				jCheckBox42.setText("42");
				checkBoxList.add(jCheckBox42);
			}
			{
				jCheckBox43 = new JCheckBox();
				this.add(jCheckBox43);
				jCheckBox43.setText("43");
				checkBoxList.add(jCheckBox43);
			}
			{
				jCheckBox44 = new JCheckBox();
				this.add(jCheckBox44);
				jCheckBox44.setText("44");
				checkBoxList.add(jCheckBox44);
			}
			{
				jCheckBox45 = new JCheckBox();
				this.add(jCheckBox45);
				jCheckBox45.setText("45");
				checkBoxList.add(jCheckBox45);
			}
			{
				jCheckBox46 = new JCheckBox();
				this.add(jCheckBox46);
				jCheckBox46.setText("46");
				checkBoxList.add(jCheckBox46);
			}
			{
				jCheckBox47 = new JCheckBox();
				this.add(jCheckBox47);
				jCheckBox47.setText("47");
				checkBoxList.add(jCheckBox47);
			}
			{
				jCheckBox48 = new JCheckBox();
				this.add(jCheckBox48);
				jCheckBox48.setText("48");
				checkBoxList.add(jCheckBox48);
			}
			{
				jCheckBox49 = new JCheckBox();
				this.add(jCheckBox49);
				jCheckBox49.setText("49");
				checkBoxList.add(jCheckBox49);
			}
			{
				jCheckBox50 = new JCheckBox();
				this.add(jCheckBox50);
				jCheckBox50.setText("50");
				checkBoxList.add(jCheckBox50);
			}
			{
				jCheckBox51 = new JCheckBox();
				this.add(jCheckBox51);
				jCheckBox51.setText("51");
				checkBoxList.add(jCheckBox51);
			}
			{
				jCheckBox52 = new JCheckBox();
				this.add(jCheckBox52);
				jCheckBox52.setText("52");
				checkBoxList.add(jCheckBox52);
			}
			{
				jCheckBox53 = new JCheckBox();
				this.add(jCheckBox53);
				jCheckBox53.setText("53");
				checkBoxList.add(jCheckBox53);
			}
			{
				jCheckBox54 = new JCheckBox();
				this.add(jCheckBox54);
				jCheckBox54.setText("54");
				checkBoxList.add(jCheckBox54);
			}
			{
				jCheckBox55 = new JCheckBox();
				this.add(jCheckBox55);
				jCheckBox55.setText("55");
				checkBoxList.add(jCheckBox55);
			}
			{
				jCheckBox56 = new JCheckBox();
				this.add(jCheckBox56);
				jCheckBox56.setText("56");
				checkBoxList.add(jCheckBox56);
			}
			{
				jCheckBox57 = new JCheckBox();
				this.add(jCheckBox57);
				jCheckBox57.setText("57");
				checkBoxList.add(jCheckBox57);
			}
			{
				jCheckBox58 = new JCheckBox();
				this.add(jCheckBox58);
				jCheckBox58.setText("58");
				checkBoxList.add(jCheckBox58);
			}
			{
				jCheckBox59 = new JCheckBox();
				this.add(jCheckBox59);
				jCheckBox59.setText("59");
				checkBoxList.add(jCheckBox59);
			}
			{
				jCheckBox60 = new JCheckBox();
				this.add(jCheckBox60);
				jCheckBox60.setText("60");
				checkBoxList.add(jCheckBox60);
			}
			{
				jCheckBox61 = new JCheckBox();
				this.add(jCheckBox61);
				jCheckBox61.setText("61");
				checkBoxList.add(jCheckBox61);
			}
			{
				jCheckBox62 = new JCheckBox();
				this.add(jCheckBox62);
				jCheckBox62.setText("62");
				checkBoxList.add(jCheckBox62);
			}
			{
				jCheckBox63 = new JCheckBox();
				this.add(jCheckBox63);
				jCheckBox63.setText("63");
				checkBoxList.add(jCheckBox63);
			}
			{
				jCheckBox64 = new JCheckBox();
				this.add(jCheckBox64);
				jCheckBox64.setText("64");
				checkBoxList.add(jCheckBox64);
			}
			{
				jCheckBox65 = new JCheckBox();
				this.add(jCheckBox65);
				jCheckBox65.setText("65");
				checkBoxList.add(jCheckBox65);
			}
			{
				jCheckBox66 = new JCheckBox();
				this.add(jCheckBox66);
				jCheckBox66.setText("66");
				checkBoxList.add(jCheckBox66);
			}
			{
				jCheckBox67 = new JCheckBox();
				this.add(jCheckBox67);
				jCheckBox67.setText("67");
				checkBoxList.add(jCheckBox67);
			}
			{
				jCheckBox68 = new JCheckBox();
				this.add(jCheckBox68);
				jCheckBox68.setText("68");
				checkBoxList.add(jCheckBox68);
			}
			{
				jCheckBox69 = new JCheckBox();
				this.add(jCheckBox69);
				jCheckBox69.setText("69");
				checkBoxList.add(jCheckBox69);
			}
			{
				jCheckBox70 = new JCheckBox();
				this.add(jCheckBox70);
				jCheckBox70.setText("70");
				checkBoxList.add(jCheckBox70);
			}
			{
				jCheckBox71 = new JCheckBox();
				this.add(jCheckBox71);
				jCheckBox71.setText("71");
				checkBoxList.add(jCheckBox71);
			}
			{
				jCheckBox72 = new JCheckBox();
				this.add(jCheckBox72);
				jCheckBox72.setText("72");
				checkBoxList.add(jCheckBox72);
			}
			{
				jCheckBox73 = new JCheckBox();
				this.add(jCheckBox73);
				jCheckBox73.setText("73");
				checkBoxList.add(jCheckBox73);
			}
			{
				jCheckBox74 = new JCheckBox();
				this.add(jCheckBox74);
				jCheckBox74.setText("74");
				checkBoxList.add(jCheckBox74);
			}
			{
				jCheckBox75 = new JCheckBox();
				this.add(jCheckBox75);
				jCheckBox75.setText("75");
				checkBoxList.add(jCheckBox75);
			}
			{
				jCheckBox76 = new JCheckBox();
				this.add(jCheckBox76);
				jCheckBox76.setText("76");
				checkBoxList.add(jCheckBox76);
			}
			{
				jCheckBox77 = new JCheckBox();
				this.add(jCheckBox77);
				jCheckBox77.setText("77");
				checkBoxList.add(jCheckBox77);
			}
			{
				jCheckBox78 = new JCheckBox();
				this.add(jCheckBox78);
				jCheckBox78.setText("78");
				checkBoxList.add(jCheckBox78);
			}
			{
				jCheckBox79 = new JCheckBox();
				this.add(jCheckBox79);
				jCheckBox79.setText("79");
				checkBoxList.add(jCheckBox79);
			}
			{
				jCheckBox80 = new JCheckBox();
				this.add(jCheckBox80);
				jCheckBox80.setText("80");
				checkBoxList.add(jCheckBox80);
			}
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public void setBookedCheckBox(int i)
	{
		checkBoxList.get(i).doClick();
		checkBoxList.get(i).setEnabled(false);
	}
	
	public boolean isCheckBoxSelected(int i)
	{
		return (checkBoxList.get(i).isSelected() && checkBoxList.get(i).isEnabled());
	}
}